<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../../JS/react.development.js"></script>
    <script src="../../JS/react-dom.development.js"></script>
    <script src="../../JS/babel.min.js"></script>
</head>
<body>
    <div id="root"></div>

    <script type="text/babel">
        class HelloWordId extends React.Component {
            componentDidMount() {
                console.log('componentDidMount');
            }

            componentWillUnmount() {
                console.log('componentWillUnmount')
            }

            render() {
                return(
                    <h1>Hello Word</h1>
                );
            }
        }

        ReactDOM.render(<HelloWordId />, document.getElementById('root'));

        setTimeout(() => {
            ReactDOM.render(<h1>Bye Bye</h1>, document.getElementById('root'));
        }, 3000)
    </script>
</body>
</html>